

        <g:set var="entityName" value="${message(code: 'teacher.label', default: 'Teacher')}" />
            <div class="dialog">
                <table>
                    <tbody>

                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.name.label" default="Name" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "name")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.sex.label" default="Sex" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "sex")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.NO.label" default="NO" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "NO")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.birthday.label" default="Birthday" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${teacherInstance?.birthday}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.degree.label" default="Degree" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "degree")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.staff.label" default="Staff" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "staff")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.features.label" default="Features" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "features")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.organize.label" default="Organize" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">                                 
                                ${fieldValue(bean: teacherInstance, field: "organize")}
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.course.label" default="Course" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: teacherInstance, field: "course")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="teacher.authorities.label" default="Authorities" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                ${fieldValue(bean: teacherInstance, field: "authorities.description")}
                            </td>
                            
                        </tr>

                        <%
                        if(teacherInstance.authorities.any{it.authority=="ROLE_MASTER_TEACHER"}){
                        %>
                        <tr class="prop">
                            <td valign="top" class="name">所带班级</td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                            ${Classes.findAllByMaster(teacherInstance)}
                            </td>
                            
                        </tr>
                        <%
                        }
                        %>
                     
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <input type="button" value="返回列表" onclick="javascript:history.go(-1)">
            </div>
